<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<br />
<?php if($this->msg):?>
<div class="replace"><?=$this->msg?></div>
<br />
<?php endif;?>
<form action="/maozhua/logs" name="form1" method="GET">
	日期：<input type="text" name="date_start" id="date_start" autocomplete="off" style="width: 100px"> ~ <input type="text" name="date_end" id="date_end" autocomplete="off" style="width: 100px">
&nbsp;&nbsp;&nbsp;&nbsp;
关键字：<input type="text" name="keyword" <?php if($this->keyword){echo "value='".$this->keyword."'";}?> />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button" value="搜索" />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" class="button-cancle" value="清空搜索条件" onclick="location.href='?';" />
</form>
<br />

<table style="table-layout: fixed;">
  <tr>
    <th width="150">记录时间</th>
    <th>内容</th>
  </tr>
    <?php $data = $this->data['current_page_info'];?>

    <?php if($data["ctime"]):?>
        <?php foreach($data["ctime"] as $id => $something):?>
            <tr>
                <td><?=$data["ctime"][$id]?></td>
                <td style="word-wrap:break-word;word-break:break-all;text-align: left;"><?=$data["contents"][$id]?></td>
            </tr>
        <?php endforeach;?>
    <?php endif;?>
</table>

<br /><br />
<div align="right"><?=$this->pagination?></div>
<br /><br /><br />
</div>

<script>
var date = new Date();//获取当前时间  
date.setDate(date.getDate()-1);
  
$(function() {
	$( "#date_start" ).datepicker({ dateFormat: 'yy-mm-dd'}).datepicker("setDate", "<?=$this->date_start?>");
});

$(function() {
	$( "#date_end" ).datepicker({ dateFormat: 'yy-mm-dd'}).datepicker("setDate", "<?=$this->date_end?>");
});
</script>
